package com.android.guoqi.sms

import android.content.Intent
import android.util.Log
import com.carmelo.library.KeepliveService
import java.text.SimpleDateFormat
import java.util.*


class SmsService : KeepliveService() {

    override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
        val i = super.onStartCommand(intent, flags, startId)
        val simpleDateFormat = SimpleDateFormat("yyyy-MM-dd HH:mm:ss")
        val time = simpleDateFormat.format(Date(System.currentTimeMillis()))
        Log.e("SmsService", "SmsService启动: $time")
        return i
    }
}